package com.model.dao;
// default package
// Generated Feb 7, 2014 12:22:34 PM by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * GuestTable generated by hbm2java
 */
@Entity
@Table(name = "guest_table", catalog = "shoppingcart_schema")
public class GuestTable implements java.io.Serializable {

	private Integer iduserTable;
	private String mobileno;
	private String name;
	private String houseno;
	private String street;
	private String area;
	private String landmark;
	private String city;
	private String email;
	private Set<OrderTable> orderTables = new HashSet<OrderTable>(0);

	public GuestTable() {
	}

	public GuestTable(String mobileno) {
		this.mobileno = mobileno;
	}

	public GuestTable(String mobileno, String name, String houseno,
			String street, String area, String landmark, String city,
			String email, Set<OrderTable> orderTables) {
		this.mobileno = mobileno;
		this.name = name;
		this.houseno = houseno;
		this.street = street;
		this.area = area;
		this.landmark = landmark;
		this.city = city;
		this.email = email;
		this.orderTables = orderTables;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "iduser_table", unique = true, nullable = false)
	public Integer getIduserTable() {
		return this.iduserTable;
	}

	public void setIduserTable(Integer iduserTable) {
		this.iduserTable = iduserTable;
	}

	@Column(name = "mobileno", nullable = false, length = 10)
	public String getMobileno() {
		return this.mobileno;
	}

	public void setMobileno(String mobileno) {
		this.mobileno = mobileno;
	}

	@Column(name = "name", length = 45)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "houseno", length = 45)
	public String getHouseno() {
		return this.houseno;
	}

	public void setHouseno(String houseno) {
		this.houseno = houseno;
	}

	@Column(name = "street", length = 45)
	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	@Column(name = "area", length = 45)
	public String getArea() {
		return this.area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	@Column(name = "landmark", length = 45)
	public String getLandmark() {
		return this.landmark;
	}

	public void setLandmark(String landmark) {
		this.landmark = landmark;
	}

	@Column(name = "city", length = 45)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "email", length = 45)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "guestTable")
	public Set<OrderTable> getOrderTables() {
		return this.orderTables;
	}

	public void setOrderTables(Set<OrderTable> orderTables) {
		this.orderTables = orderTables;
	}

}
